<?php
echo $vars ['group_guid'];
// $options = array (
// 		'type' => 'object',
// 		'subtype' => 'groupforumtopic',
// 		'container_guid' => $vars ['group_guid'],
// );
// $content = elgg_get_entities ( $options );
// foreach ( $content as $svnitem ) {
// 	$svnitem->delete ( true );
// }

for($i = 0; $i < 2; $i ++) {
	$topic = new ElggObject();
	$topic->subtype = 'groupforumtopic';
	$topic->title = "update svn" . $i;
	$topic->description = "Description update svn " . $i;
	$topic->access_id = ACCESS_LOGGED_IN;
	$topic->owner_guid = elgg_get_logged_in_user_guid();
	$topic->container_guid = $vars ['group_guid'];
	$topic->is_svn_update = true;
	$topic->save ();
}

for($i = 0; $i < 2; $i ++) {
	$topic = new ElggObject();
	$topic->subtype = 'groupforumtopic';
	$topic->title = "Commit svn" . $i;
	$topic->description = "Description commit svn " . $i;
	$topic->access_id = ACCESS_LOGGED_IN;
	$topic->owner_guid = elgg_get_logged_in_user_guid();
	$topic->container_guid = $vars ['group_guid'];
	$topic->is_svn_commit = true;
	$topic->save ();
}

forward(REFERER);